package com.heima.pojo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/*
* 加上该Bean对象将不能获取到User
* */
@Configuration
public class AppleConfig {
    @Bean
    public Apple apple(){
        return new Apple();
    }
}